
package org.darcy.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel("系统用户: SysUser")
@Table(name = "sys_user")
@Getter
@Setter
public class SysUser implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="")
	@TableId(type= IdType.AUTO)
	private Long id;
	
	@ApiModelProperty(value="用户名")
	private String username;
	
	@ApiModelProperty(value="密码")
	private String password;
	
	@ApiModelProperty(value="昵称")
	private String nickname;
	
	@ApiModelProperty(value="手机号")
	private String mobile;
	
	@ApiModelProperty(value="邮箱地址")
	private String email;
	
	@ApiModelProperty(value="QQ")
	private String qq;
	
	@ApiModelProperty(value="生日")
	private Date birthday;
	
	@ApiModelProperty(value="性别")
	private Integer gender;
	
	@ApiModelProperty(value="头像地址")
	private String avatar;
	
	@ApiModelProperty(value="超级管理员、管理员、普通用户")
	private String userType;
	
	@ApiModelProperty(value="公司")
	private String company;
	
	@ApiModelProperty(value="个人博客地址")
	private String blog;
	
	@ApiModelProperty(value="地址")
	private String location;
	
	@ApiModelProperty(value="用户来源")
	private String source;
	
	@ApiModelProperty(value="用户唯一表示(第三方网站)")
	private String uuid;
	
	@ApiModelProperty(value="隐私（1：公开，0：不公开）")
	private Byte privacy;
	
	@ApiModelProperty(value="通知：(1：通知显示消息详情，2：通知不显示详情)")
	private Byte notification;
	
	@ApiModelProperty(value="金币值")
	private Integer score;
	
	@ApiModelProperty(value="经验值")
	private Integer experience;
	
	@ApiModelProperty(value="注册IP")
	private String regIp;
	
	@ApiModelProperty(value="最近登录IP")
	private String lastLoginIp;
	
	@ApiModelProperty(value="最近登录时间")
	private Date lastLoginTime;
	
	@ApiModelProperty(value="登录次数")
	private Integer loginCount;
	
	@ApiModelProperty(value="用户备注")
	private String remark;
	
	@ApiModelProperty(value="用户状态")
	private Integer status;
	
	@ApiModelProperty(value="注册时间")
	private Date createTime;
	
	@ApiModelProperty(value="更新时间")
	private Date updateTime;
	
}
